package com.etc.controller;

import java.util.Arrays;
import java.util.List;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class AjaxController {
	
	@ResponseBody
	@RequestMapping("initajax.action")
	public List<String> init() {

		
		List<String> jlist = Arrays.asList("经理", "销售", "人事");
		
		return jlist; // ==> json
	}

}
